#include "stdafx.h"
#include "CodeImage.h"
#include "SKEYRmtDlg.h"

IMPLEMENT_DYNAMIC(CCodeImage, CStatic)

BEGIN_MESSAGE_MAP(CCodeImage, CStatic)
	ON_WM_MOUSEMOVE()
	ON_WM_LBUTTONDOWN()
	ON_WM_LBUTTONUP()
	ON_WM_RBUTTONUP()
END_MESSAGE_MAP()

void CCodeImage::OnMouseMove(UINT nFlags, CPoint point)
{
	((CSKEYRmtDlg*)GetParent())->CCImgMouseMove();
	CStatic::OnMouseMove(nFlags, point);
}

afx_msg void CCodeImage::OnLButtonDown(UINT nFlags, CPoint point)
{
	((CSKEYRmtDlg*)GetParent())->CCImgLButtonDown();
	CStatic::OnLButtonDown(nFlags, point);
}

afx_msg void CCodeImage::OnLButtonUp(UINT nFlags, CPoint point)
{
	((CSKEYRmtDlg*)GetParent())->codeShowLButtonUp();
	CStatic::OnLButtonDown(nFlags, point);
}

afx_msg void CCodeImage::OnRButtonUp(UINT nFlags, CPoint point)
{
	((CSKEYRmtDlg*)GetParent())->codeShowRButtonUp();
	CStatic::OnRButtonDown(nFlags, point);
}
